package main

import "fmt"

func printSlice(s []int) {
	fmt.Printf("%v, len=%d,cap=%d\n",s,len(s),cap(s))
}

func main() {
	fmt.Println("Create slice")
	var s []int

	for i:=0; i<100;i++ {
		printSlice(s)
		s = append(s,2*i+1)
	}
	fmt.Println(s)
}
